package com.ruoyi.lvlian.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.utils.StringUtils;
import com.ruoyi.lvlian.domain.LhsOrder;
import com.ruoyi.lvlian.domain.LhsOrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 莱回收订单对象 lhs_order
 *
 * @author ruoyi
 * @date 2025-07-23
 */
@Data
@ToString
@ApiModel(value = "莱回收订单对象", description = "莱回收订单对象")
public class LhsOrderVo   extends LhsOrder {

//    @OneToMany(mappedBy = "order", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    private List<LhsOrderItem> orderItems;


    private String orderId;
    private String orderItemId;


    public List<LhsOrderItem> getOrderItems() {
        if(StringUtils.isEmpty( getOrderItemId()) ){
            return null;
        }
        return orderItems;
    }
}
